package model

import "gorm.io/gorm"

type Shop struct {
	gorm.Model
	Name   string  `gorm:"type:varchar(30);comment:商品名称"`
	Price  float64 `gorm:"type:decimal(10,2);comment:商品价格"`
	Number int     `gorm:"type:int(11);comment:商品库存"`
	Images string  `gorm:"type:varchar(255);comment:商品图片"`
	Status int     `gorm:"type:int(11);comment:状态:0-上架,1-下架"`
}

type Display struct {
	gorm.Model
	DisName string `gorm:"type:varchar(30);comment:分类名称"`
	ShopId  uint   //关联商品id
}

type Order struct {
	gorm.Model
	ShopId uint //商品ID
	UserId uint //用户ID
	Status int  //订单状态 0-已付款 1-未付款
}
